package com.nuoniu.sibanyun.entity.crm.call.rongying.enumEntity;

public enum RYStatusCode {

    CODE_1("1", "无效的验证码"),
    CODE_2("2", "该用户已被冻结"),
    CODE_3("3", "该用户已被冻结");

    private String code;
    private String msg;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public static String getValueByKey(String code) {
        RYStatusCode[] animalEnums = values();
        for (RYStatusCode animal: animalEnums) {
            if (animal.getCode().equals(code)) {
                return animal.getMsg();
            }
        }
        return null;
    }

    RYStatusCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
